package com.richinfo.consumer.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import com.richinfo.consumer.entity.User;

/**
* Created by WangXJ
* 2018-11-05 14:46
*/
@FeignClient("hello-service")
public interface HelloService {

	@GetMapping("/hello")
	String hello();
	
	@GetMapping("/hello1")
	String hello(@RequestParam("name") String name);
	
	@GetMapping("/hello2")
	User hello(@RequestHeader("name") String name,@RequestHeader("age") Integer age);
	
	@GetMapping("/hello3")
	String hello(@RequestBody User user);
}
